<small> 
<div class="row">
  <div class="span3 bs-docs-sidebar "> <*include file="<*$controller*>/location.tpl"*></div>
    
  <div class="span8"> 
          <form action="/<*$controller*>/useddetail/id/<*$id*>" method="post">
           <label class="checkbox inline">
              <input type="checkbox"  name="used" value='1' <*if $used eq 1*>checked<*/if*>> 未使用
            </label> 
           <label class="checkbox inline">
              <input type="checkbox"  name="unused" value='1' <*if $unused eq 1*>checked<*/if*> > 已使用
            </label>  
             <input type="submit" class="btn btn-success"  value="开始查询"  >
          </form>  
            
     <br/><br/>
    <table class="table table-condensed table-bordered table-hover span9"> 
     <tr class="success">   
           <td><strong>优惠券券号</strong></td>
           <td><strong>使用者姓名</strong></td> 
           <td><strong>使用者所在机构</strong></td> 
           <td><strong>使用者校区</strong></td> 
           <td><strong>使用者所在班级</strong></td>  
           <td><strong>使用时间</strong></td>  
      </tr>
      <*foreach from=$result item=item key=key*>
      <tr>
         <td><strong><*$item.code*></strong></td>
        <td><strong><*$item.cnname*></strong></td>
        
        <td><strong><*$item.groupname*></strong></td>
        <td><strong><*$item.schoolname*></strong></td> 
        <td><strong><*$item.classname*></strong></td>  
        <td><strong> <*if $item.fetch_time eq 0*>未使用<*else*><*$item.fetch_time|date_format:'%Y-%m-%d %H:%M:%S'*><*/if*></strong></td>  
        <td><*if $item.fetch_time eq 0*><a onclick=deleteaa('<*$item.c_id*>','<*$item.id*>') >作废</a><*/if*></td>
      </tr> 
      <*/foreach*> 
       <tr><td colspan="6"> 
  		   <a  onClick="history.back();"><button type="button" class="btn btn-large btn-block">返&nbsp;回</button></a>
       </td></tr>
      
    </table> 
  </div>  
  <script type="text/javascript"> 
    function deleteaa(cid,id){
	  
	 window.location='/<*$controller*>/delete/id/'+id+'/cid/'+cid;   
	  
	  }  
	  
 </script>  
</div>
 

</small> 